CC = gcc
CFLAGS = -I../include
OBJS = student_manager.o
RELEASE_DIR = ../../RELEASE


all: $(OBJS)

# student_manager.o: student_manager.c
# 	$(CC) $(CFLAGS) -c student_manager.c


# # 确保 RELEASE 目录存在
# $(RELEASE_DIR):
# 	mkdir -p $(RELEASE_DIR)

# 将 student_manager.o 的编译输出指定RELEASE 目录
$(RELEASE_DIR)/$(OBJS): student_manager.c | $(RELEASE_DIR)
	$(CC) $(CFLAGS) -c -o $@ $<


# clean:
# 	rm -f $(OBJS)



clean:
	rm -f $(RELEASE_DIR)/$(OBJS)

# .PHONY: all clean
